package com.lywz.biz.common.entity.goodfood;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

@Entity
@NamedQueries( { @NamedQuery(name = "specialSnack.querySnackListByPower", query = "from SpecialSnack ss order by ss.power desc") })
@Table(name = "t_specialSnack")
@EntityAnnotation
public class SpecialSnack extends AbstractEntity {

    private static final long serialVersionUID = 6179760944104592268L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer specialSnackId;

    /**
     * 名字
     */
    private String name;

    /**
     * 图片路径
     */
    private String imageUrl;

    /**
     * 描述
     */
    private String specialSnackDesc;

    /**
     * 原料
     */
    private String stuff;

    /**
     * 调料
     */
    private String seasoning;

    /**
     * 制作方法
     */
    private String makeMethod;

    /**
     * 风味特色
     */
    private String characteristic;

    /**
     * 技术要领
     */
    private String gist;

    /**
     * 权重
     */
    private Integer power;

    /**
     * 添加时间
     */
    private Date addTime;

    //all set and get method
    public Integer getSpecialSnackId() {
        return specialSnackId;
    }

    public String getName() {
        return name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public String getSpecialSnackDesc() {
        return specialSnackDesc;
    }

    public String getStuff() {
        return stuff;
    }

    public String getSeasoning() {
        return seasoning;
    }

    public String getMakeMethod() {
        return makeMethod;
    }

    public String getCharacteristic() {
        return characteristic;
    }

    public String getGist() {
        return gist;
    }

    public void setSpecialSnackId(Integer specialSnackId) {
        this.specialSnackId = specialSnackId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public void setSpecialSnackDesc(String specialSnackDesc) {
        this.specialSnackDesc = specialSnackDesc;
    }

    public void setStuff(String stuff) {
        this.stuff = stuff;
    }

    public void setSeasoning(String seasoning) {
        this.seasoning = seasoning;
    }

    public void setMakeMethod(String makeMethod) {
        this.makeMethod = makeMethod;
    }

    public void setCharacteristic(String characteristic) {
        this.characteristic = characteristic;
    }

    public void setGist(String gist) {
        this.gist = gist;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

}
